package com.fyb.tlog.example.feign.controller;

import com.fyb.tlog.example.feign.service.TestRetryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：MR.FANG
 * @name：PayController
 * @Date：2025/5/12 下午5:51
 */
@Slf4j
@RestController
public class PayController {

    @Autowired
    TestRetryService testRetryService;

    @GetMapping("/addCode/{code}")
    public String addCode(@PathVariable int code) throws Exception {
        return testRetryService.test(code);
    }
}
